hvmloader: Add a simple "scratch allocator"
authorIan Campbell <ian.campbell@citrix.com>
Wed, 1 Jun 2011 15:46:28 +0000 (16:46 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 1 Jun 2011 15:46:28 +0000 (16:46 +0100)
commit80766862aa1c3929c90b27fe3d1850071de9ce98
treebe9a77fbd5a324a65404084a4ca5629694cf0900
parent20f9f76007757354195571bac65bdc03d9df6e69
hvmloader: Add a simple "scratch allocator"

Returns memory which is passed to the subsequent BIOS but can be
reused once the contents is consumed. An example of this would be a
BIOS table which the BIOS consumes by copying rather than simply
referencing.

Users which need a temporary scratch buffer for internal use
scratch_start which follows these allocations.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
tools/firmware/hvmloader/config.h
tools/firmware/hvmloader/hvmloader.c
tools/firmware/hvmloader/pci.c
tools/firmware/hvmloader/rombios.c
tools/firmware/hvmloader/util.c
tools/firmware/hvmloader/util.h